//
//  LCBMessage.h
//  UITableView
//
//  Created by Administrator on 2016/11/13.
//  Copyright © 2016年 Administrator. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#import "ICChatHearder.h"





@interface LCBMessage : NSObject

// 消息来源用户名
@property (nonatomic, copy) NSString *senderName;
// 消息来源用户id
@property (nonatomic, copy) NSString *from;
// 消息目的地群组id
@property (nonatomic, copy) NSString *to;
// 消息ID
@property (nonatomic, copy) NSString *messageId;
// 消息发送状态
@property (nonatomic, assign) MessageDeliveryState deliveryState;
// 消息时间
@property (nonatomic, assign) NSInteger date;
// 本地消息标识:(消息+时间)的MD5
@property (nonatomic, copy) NSString *localMsgId;
// 消息文本内容
@property (nonatomic, copy) NSString *content;
// 音频文件的fileKey
@property (nonatomic, copy) NSString *fileKey;
// 发送消息对应的type类型:1,2,3(消息类型)
@property (nonatomic, assign) NSInteger type;
// 时长，宽高，首帧id
@property (nonatomic, strong) NSString *lnk;

// (0:未读 1:已读 2:撤回)
@property (nonatomic, assign) NSInteger status;

// 左 中 右
@property (nonatomic , assign) LCBMessageType Messagetype;

/** type = 3 照片*/

// 不用这些路径了，只用里面的名字重新组成路径
@property (nonatomic, copy) NSString *mediaPath;

@property (nonatomic , assign) CGFloat cellHeight;
/** 是否显示时间 YES 隐藏 */
@property (nonatomic , assign ,getter=isHideTime) BOOL hideTime;

+ (instancetype)messageWithDict:(NSDictionary *)dict;


@end
